package com.lxk.service;

import com.lxk.pojo.Appoint;
import com.lxk.pojo.Designer;
import com.lxk.pojo.Measure;
import com.lxk.vo.AppointMeasureModel;
import com.lxk.vo.AppointModel;
import com.lxk.vo.PageModel;

/**
 * @author JohnSoybean
 * @create 2020/4/9 10:08
 * @description
 */
public interface BalconySevice {

    /**
     * 获取设计师信息总页数
     * @param num
     * @return
     */
    Integer getDesignerPages(Integer num);

    /**
     * 获取加盟信息分页
     * @param pageIndex
     * @param num
     * @param totalPages
     * @return
     */
    PageModel<Designer> selDesignerPage(Integer pageIndex, Integer num, Integer totalPages, Integer sort, Integer order);

    /**
     * 查找加盟id
     * @param contactId
     * @return
     */
    Designer selDesignerById(Integer designerId);

    /**
     * 删除设计师
     * @param designerId
     */
    void deleteDesigner(Integer designerId);

    /**
     * 添加设计师
     * @param designer
     */
    void addDesigner(Designer designer);


    /**
     * 编辑设计师
     * @param designer
     */
    void modifyDesigner(Designer designer);


    /**
     * 获取预约信息总页数
     * @param num
     * @return
     */
    Integer getAppointPages(Integer num);

    /**
     * 获取预约信息分页
     * @param pageIndex
     * @param num
     * @param totalPages
     * @return
     */
    PageModel<AppointModel> selAppointPage(Integer pageIndex, Integer num, Integer totalPages, Integer sort, Integer order);

    /**
     * 查找预约id
     * @param contactId
     * @return
     */
    Appoint selAppointById(Integer appointId);

    /**
     * 预约设为已处理
     * @param designerId
     */
    void handleAppoint(Integer appointId);

    /**
     * 获取预约信息总页数
     * @param num
     * @return
     */
    Integer getMeasureAppointPages(Integer num);

    /**
     * 获取预约信息分页
     * @param pageIndex
     * @param num
     * @param totalPages
     * @return
     */
    PageModel<AppointMeasureModel> selMeasureAppointPage(Integer pageIndex, Integer num, Integer totalPages, Integer sort, Integer order);

    /**
     * 查找预约id
     * @param measureId
     * @return
     */
    Measure selMeasureById(Integer measureId);

    /**
     * 预约设为已处理
     * @param measureId
     */
    void handleMeasure(Integer measureId);

}
